home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Frameworks / Hsoi's App Shell 1.0a4 / Hsoi's App Shell Headers / HASCoolAboutBox.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-28  |  1.8 KB  |  94 lines  |  [TEXT/CWIE]

  1. /*
  2.     HASCoolAboutBox.h from Hsoi's App Shell © 1995-1997 John C. Daub.  All rights reserved.
  3.     
  4.     This is the corresponding header file to HASCoolAboutBox.c.  Note the praga align
  5.     to "ensure" that the structs get aligned to 68k boundries.
  6. */
  7.  
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11.  
  12. #if PRAGMA_ALIGN_SUPPORTED
  13. #pragma options align=mac68k
  14. #endif
  15.  
  16.  
  17. enum {
  18.     PIXEL_DEPTH        =    8,
  19.     BOUNCE            =    15,
  20.     FADE_LEVELS        =    12,
  21.     FONT_SIZE        =    9
  22. };
  23.  
  24. typedef struct UserItemRec    {
  25.     long padding1;
  26.     Rect box;
  27.     short padding2;
  28. } UserItemRec;
  29.  
  30. typedef struct DITLRec    {
  31.     short numItems;
  32.     UserItemRec theUserItems[1];
  33. } DITLRec, **DITLHand;
  34.  
  35. typedef struct CreditsRec
  36. {
  37.     GWorldPtr        theGWorldPtr;
  38.     Rect            viewRect;
  39.     Rect            pictRect;
  40.     short            pictHeight;
  41. } CreditsRec;
  42.  
  43. typedef struct LogoRec
  44. {
  45.     GWorldPtr        theGWorldPtr;
  46.     Rect            currPos;
  47.     Rect            imagePos;
  48.     short            bottomLoc;
  49. } LogoRec;
  50.  
  51. typedef LogoRec VersionRec;
  52.  
  53. typedef enum AnimateState
  54. {
  55.     animate_Waiting,
  56.     animate_Active,
  57.     animate_Done
  58. } AnimateState;
  59.  
  60. static CWindowPtr        aboutBoxWindow;
  61. static PixMapPtr        windowPixMapPtr;
  62. static GWorldPtr        gDrawWorldPtr;
  63. static PixMapPtr        gDrawPixMapPtr;
  64. static GWorldPtr        gBackWorldPtr;
  65. static PixMapPtr        gBackPixMapPtr;
  66.  
  67. // local function prototypes
  68.  
  69.  
  70. void            HsoiGetItemRect( short, Rect * );
  71. void            HsoiDrawPictIntoNewGWorld(short, short, GWorldPtr * );
  72. void            HsoiSetUpLogo( LogoRec * );
  73. void            HsoiSetUpVersion( VersionRec * );
  74. void            HsoiDrawTextIntoNewGWorld(short, Rect *, short, GWorldPtr * );
  75. void            HsoiSetUpCredits(CreditsRec * );
  76. void            HsoiMoveLogoBox(GWorldPtr, Rect *, short );
  77. void            HsoiMoveOffWorld(GWorldPtr, Rect *, Rect *, Rect * );
  78.  
  79. void            HsoiDoCoolAboutBox( void );
  80. void            HsoiSetUpCoolAboutBox( void );
  81. void            HsoiDoCoolStuff( void );
  82. void            HsoiCleanUpCoolAboutBox( void );
  83.  
  84.  
  85. #if PRAGMA_ALIGN_SUPPORTED
  86. #pragma options align=reset
  87. #endif
  88.  
  89. #ifdef __cplusplus
  90. }
  91. #endif
  92.  
  93.  
  94.